package com.zm.authority.identity.dao;

import java.util.List;

import org.apache.ibatis.annotations.Select;

import com.zm.base.core.exception.BaseException;

public interface ZmRoleDao {
	/**
	 * 
	 * @author chenhuaming
	 * @Time 2017年4月23日
	 * @param userId
	 * @return
	 * @throws BaseException
	 * @throws Exception
	 */
	@Select(" select code from zm_user_role_ref where user_id=#{userId} ")
	public List<String> getRolesByUserId(String userId)throws BaseException,Exception;
}